package com.suneast.suneaststore.modules.common.event;

import com.suneast.suneaststore.modules.common.Flag;
import com.suneast.suneaststore.bean.common.PictureBean;

public class PicUploadResult {
    private @Flag.Result
    final int value;
    private final String sponsor;
    private final PictureBean bean;
    private final String msg;

    public PicUploadResult(@Flag.Result int value, String who, String msg) {
        this.value = value;
        this.sponsor = who;
        this.bean = null;
        this.msg = msg;
    }

    public PicUploadResult(@Flag.Result int value, String who, PictureBean bean) {
        this.value = value;
        this.sponsor = who;
        this.bean = bean;
        this.msg = null;
    }

    public @Flag.Result
    int getValue() {
        return value;
    }

    public String getMsg() {
        return msg;
    }

    public String getSponsor() {
        return sponsor;
    }

    public PictureBean getBean() {
        return bean;
    }
}
